import {PERSON_LOST, ADD_PERSON_LOST, OFFTER_CLUE, STATION_LIST, STATION_LOST_LIST, PEOPLE_CLUE} from "./requestUrl.js"
import {request} from './requst.js'

// 获取走失人列表
export function getPersonLostList() {
	return request({
		url: PERSON_LOST,
		method: 'post',
		data: {
			lost_id: ""
		}
	})
}

// 获取走失人详细信息
export function getLostInfo(lost_id) {
	return request({
		url: PERSON_LOST,
		method: 'post',
		data: {
			lost_id
		}
	})
}

// 提供线索
export function offterClue(data) {
	return request({
		url: OFFTER_CLUE,
		method: 'post',
		data
	})
}

// 获取区域信息
export function getStationList() {
	return request({
		url: STATION_LIST,
		method: 'post',
		data: {station_id: ''}
	})
}

// 获取区域遗失信息
export function getLostByStationId(station_id) {
	return request({
		url: STATION_LOST_LIST,
		method: 'post',
		data: {station_id}
	})
}

// 获取 线索
export function getPeopleClue(lost_id) {
	return request({
		url: PEOPLE_CLUE,
		method: 'post',
		data: {lost_id}
	})
}
